package com.b511.swpu.cementbackend.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.*;
import java.util.Date;

@Entity
@Getter
@Setter
@Accessors(chain = true)
// 固井质量总结 对应表 CM_WK_CEMENT_EVALUATION
public class CM_WK_CementEvaluation extends BABaseEntity {
    @Id
    @GenericGenerator(name="evaluationGenerator", strategy="uuid")
    @GeneratedValue(generator="evaluationGenerator")
    private String CM_WK_CementEvaluation_ID;

    @Basic
    @Column(name = "CASINGSIZE")
    private Double casingSize;

    @Temporal(TemporalType.DATE)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @Basic
    @Column(name = "LOGTIME")
    private Date logTime;

    @Basic
    @Column(name = "SOLIDHOUR")
    private Double solidHour;

    @Basic
    @Column(name = "SOLIDTYPE", length = 50)
    private String solidType;

    @Basic
    @Column(name = "ANNULARPRESSURE")
    private Double annularPressure;

    @Basic
    @Column(name = "PRESSUREHOUR")
    private Double pressureHour;

    @Basic
    @Column(name = "TOC1")
    private Double TOC1;

    @Basic
    @Column(name = "BOC1")
    private Double BOC1;

    @Basic
    @Column(name = "CBL1")
    private Double CBL1;

    @Basic
    @Column(name = "SBT1")
    private Double SBT1;

    @Basic
    @Column(name = "TOC2")
    private Double TOC2;

    @Basic
    @Column(name = "BOC2")
    private Double BOC2;

    @Basic
    @Column(name = "CBL2")
    private Double CBL2;

    @Basic
    @Column(name = "SBT2")
    private Double SBT2;

    @Basic
    @Column(name = "INTEGEVALUE", length = 50)
    private String integEvalue;

    @Basic
    @Column(name = "ATTACHMENT", length = 50)
    private String attachment;

    @Basic
    @Column(name = "BA_WELL_ID")
    @JsonIgnore
    private Long ba_well_id;

    @ManyToOne
    @JoinColumn(name="cm_basic_id")
    private CM_Basic basic;
}
